package stream.Demo08;

import java.io.FileInputStream;

/**
 * @Author Miku
 * @Create 2021/4/30 9:41
 */
public class Test {
    public static void main(String[] args) throws Exception {
        //1.创建FileInputStream对象
        FileInputStream fis = new FileInputStream("e:\\hello.txt");
        //2.读取
        int data = 0;
        while ((data = fis.read()) != -1) {
            System.out.print((char) data);
        }
        //3.关闭
        fis.close();
    }
}
